# 积分购买页面
from selenium.webdriver.common.by import By


class IntegralPage():

    # 我的积分链接
    integral_link_elem = (By.LINK_TEXT, "我的积分")
    # 积分换购按钮
    integral_btn_elem = (By.CLASS_NAME, "jfhg")
    # 立即换购(多个值)
    buy_now_elem = (By.LINK_TEXT, "立即换购")
    # 立即兑换按钮
    join_cart_now = (By.ID, "join_cart_now")
    # 输入支付密码
    pay_pwd = (By.CSS_SELECTOR, "input[placeholder='请输入支付密码']")
    # 提交订单
    submit = (By.CLASS_NAME, "Sub-orders")
    # 支付方式
    pay = (By.XPATH, "//input[@value='pay_code=cod']")
    # 确认支付
    confirm_pay = (By.LINK_TEXT, "确认支付方式")
    # 商城链接
    my_shop = (By.LINK_TEXT, "我的商城")
    # 我的订单
    my_order = (By.XPATH, "//a[@href='/index.php/Home/Order/order_list.html']")


